import { BasicColumn } from '/@/components/Table/src/types/table';

interface NavItem {
  title: string;
  icon: string;
  color: string;
}

interface StatusItem {
  title: string;
  value: number;
  color: string;
}

interface TypeItem {
  title: string;
  value: number;
}

interface SourceItem {
  title: string;
  value: number;
}

interface ChargeItem {
  title: string;
  value: number;
}

export const navItems: NavItem[] = [
  {
    title: '项目管理',
    icon: 'ion:grid-outline',
    color: '#bf0c2c',
  },
  {
    title: '项目立项',
    icon: 'material-symbols:approval-outline',
    color: '#3fb27f',
  },
  {
    title: '项目计划',
    icon: 'circum:paperplane',
    color: '#4daf1bc9',
  },
  {
    title: '项目合同',
    icon: 'ion:ios-paper-outline',
    color: '#1fdaca',
  },
  {
    title: '项目结项',
    icon: 'material-symbols:contract-edit-outline-rounded',
    color: '#e18525',
  },
  {
    title: '项目看板',
    icon: 'iconoir:dashboard-dots',
    color: '#00d8ff',
  },
];

export const StatusItems: StatusItem[] = [
  {
    title: '已立项项目',
    value: 8,
    color: '#3fb27f',
  },
  {
    title: '未开始项目',
    value: 4,
    color: '#e18525',
  },
  {
    title: '进行中项目',
    value: 5,
    color: '#00d8ff',
  },
  {
    title: '已结项项目',
    value: 2,
    color: '#bf0c2c',
  },
];

export const TypeItems: TypeItem[] = [
  {
    title: '产品研发',
    value: 8,
  },
  {
    title: '产品设计',
    value: 4,
  },
  {
    title: '售后运维',
    value: 5,
  },
  {
    title: '生产制造',
    value: 2,
  },
];

export const SourceItems: SourceItem[] = [
  {
    title: '广告营销',
    value: 8,
  },
  {
    title: '客户介绍',
    value: 4,
  },
  {
    title: '合作伙伴',
    value: 5,
  },
  {
    title: '其他来源',
    value: 2,
  },
];

export const ChargeItems: ChargeItem[] = [
  {
    title: '张三',
    value: 8,
  },
  {
    title: '李四',
    value: 4,
  },
  {
    title: '王五',
    value: 5,
  },
  {
    title: '赵六',
    value: 2,
  },
  {
    title: '钱七',
    value: 1,
  },
  {
    title: '孙八',
    value: 1,
  },
  {
    title: '周九',
    value: 1,
  },
];

export function ProjColumns(): BasicColumn[] {
  return [
    {
      title: 'WBS编号',
      dataIndex: 'wbs',
      fixed: 'left',
      width: 300,
    },
    {
      title: '项目编号',
      dataIndex: 'projCode',
      width: 100,
    },
    {
      title: '项目名称',
      dataIndex: 'projName',
      width: 100,
    },
    {
      title: '任务名称',
      dataIndex: 'taskName',
      width: 100,
    },
    {
      title: '任务类型',
      width: 150,
      dataIndex: 'taskType',
    },
    {
      title: '负责人',
      width: 150,
      dataIndex: 'charge',
    },
    {
      title: '任务状态',
      width: 150,
      dataIndex: 'taskStatus',
    },
    {
      title: '开始时间',
      width: 150,
      dataIndex: 'startTime',
    },
    {
      title: '截止时间',
      width: 150,
      dataIndex: 'endTime',
    },
    {
      title: '优先级',
      width: 150,
      dataIndex: 'priority',
    },
    {
      title: '任务进度',
      width: 150,
      dataIndex: 'progress',
    },
  ];
}
